package CRM;

import com.google.appengine.api.datastore.Key;
import java.util.ArrayList;
import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


/**
 * @version 0.1.2
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Task
{
    /**
     * Contains unique id for contact
     */
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    /**
     * Contains text of Task
     */
    @Persistent
    private String text;

    /**
     * Contains project of Task
     */
    @Persistent
    private Project project;

    /**
     * Contains Concats of Task
     */
    @Persistent
    private Contact contact;

    /**
     * Contains created Date of Task
     */
    @Persistent
    private ArrayList<Date> createdOn;

    /**
     * Contains DeadLine Date of Task
     */
    @Persistent
    private ArrayList<Date> deadLine;

    public Task(String text, Project project, Contact contact, ArrayList<Date> createdOn, ArrayList<Date> deadLine)
    {
        setText(text);
        setProject(project);
        setContact(contact);
        setCreatedOn(createdOn);
        setDeadLine(deadLine);
    }

    public Contact getContact()
    {
        return contact;
    }

    public void setContact(Contact contact)
    {
        this.contact = contact;
    }

    public ArrayList<Date> getCreatedOn()
    {
        return createdOn;
    }

    public void setCreatedOn(ArrayList<Date> createdOn)
    {
        this.createdOn = createdOn;
    }

    public ArrayList<Date> getDeadLine()
    {
        return deadLine;
    }

    public void setDeadLine(ArrayList<Date> deadLine)
    {
        this.deadLine = deadLine;
    }

    public Project getProject()
    {
        return project;
    }

    public void setProject(Project project)
    {
        this.project = project;
    }

    public String getText()
    {
        return text;
    }

    public void setText(String text)
    {
        this.text = text;
    }
}